package com.fuqiang.nightshopumsmodel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Description:会员表
 * @author fuqiang
 * @since 2020-04-14
 */
@ApiModel(value ="会员表")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ums_member")
public class UmsMember implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("member_level_id")
    private Long memberLevelId;
    @ApiModelProperty(value = "用户名")
    @TableField("username")
    private String username;
    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;
    @ApiModelProperty(value = "昵称")
    @TableField("nickname")
    private String nickname;
    @ApiModelProperty(value = "手机号码")
    @TableField("phone")
    private String phone;
    @ApiModelProperty(value = "帐号启用状态:0->禁用；1->启用")
    @TableField("status")
    @TableLogic
    private Integer status;
    @ApiModelProperty(value = "注册时间")
    @TableField("create_time")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "头像")
    @TableField("icon")
    private String icon;
    @ApiModelProperty(value = "性别：0->未知；1->男；2->女")
    @TableField("gender")
    private Integer gender;
    @ApiModelProperty(value = "生日")
    @TableField("birthday")
    private LocalDate birthday;
    @ApiModelProperty(value = "所做城市")
    @TableField("city")
    private String city;
    @ApiModelProperty(value = "职业")
    @TableField("job")
    private String job;
    @ApiModelProperty(value = "个性签名")
    @TableField("personalized_signature")
    private String personalizedSignature;
    @ApiModelProperty(value = "用户来源")
    @TableField("source_type")
    private Integer sourceType;
    @ApiModelProperty(value = "积分")
    @TableField("integration")
    private Integer integration;
    @ApiModelProperty(value = "成长值")
    @TableField("growth")
    private Integer growth;
    @ApiModelProperty(value = "剩余抽奖次数")
    @TableField("luckey_count")
    private Integer luckeyCount;
    @ApiModelProperty(value = "历史积分数量")
    @TableField("history_integration")
    private Integer historyIntegration;


    public static final String ID = "id";

    public static final String MEMBER_LEVEL_ID = "member_level_id";

    public static final String USERNAME = "username";

    public static final String PASSWORD = "password";

    public static final String NICKNAME = "nickname";

    public static final String PHONE = "phone";

    public static final String STATUS = "status";

    public static final String CREATE_TIME = "create_time";

    public static final String ICON = "icon";

    public static final String GENDER = "gender";

    public static final String BIRTHDAY = "birthday";

    public static final String CITY = "city";

    public static final String JOB = "job";

    public static final String PERSONALIZED_SIGNATURE = "personalized_signature";

    public static final String SOURCE_TYPE = "source_type";

    public static final String INTEGRATION = "integration";

    public static final String GROWTH = "growth";

    public static final String LUCKEY_COUNT = "luckey_count";

    public static final String HISTORY_INTEGRATION = "history_integration";

}
